﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMaster.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Microhard.Framework.MVCHelper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    质押物调价管理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="section-header">
        <div class="title">
            <img src="<%=Url.Content("~/Content/images/ico-catalog.png")%>" alt="" />
            质押物调价管理
        </div>
        <div class="options">
        </div>
    </div>
    <table width="100%">
        <tr>
            <td class="adminTitle">
                &nbsp
            </td>
            <td class="adminData">
                &nbsp
            </td>
        </tr>
    </table>
    <p>
    </p>
    <table class="adminContent">
        <tr>
            <td>
                <% Html.Telerik().Grid<Microhard.WarehouseInsp.Buz.Models.PledgeChangeRecordModel>
                 ().Name("operation-grid").ToolBar(t => t.Template(g =>
                 {
                %>
                <div class="header-menu">
                    <ul class="t-widget t-reset t-header t-menu">
                        <li class="t-item  t-state-default">
                            <%=Html.Authorized_UpdateButton("btnUpdate", "修改", "operation-grid", "Update", "PlgChangePrice", "WarehouseInsp")%>
                        </li>
                    </ul>
                </div>
                <% })).Columns(columns =>
                   {
                       columns.Bound(x => x.PledgeProductID).Template(x => Html.CheckBox("checkedRecords", new { value = x.PledgeProductID, @class = "gridCks" }))
                           .ClientTemplate("<input type='checkbox' name='checkedRecords' value='<#= PledgeProductID #>' class='gridCks'/>")
                           .HtmlAttributes(new { style = "text-align:center" }).Title("选择");
                       columns.Bound(x => x.PrjName).Title("项目名称");
                       columns.Bound(x => x.PrjCode).Title("项目编号");
                       columns.Bound(x => x.WarehouseName).Title("仓库");
                       columns.Bound(x => x.ProtalName).Title("监管员");
                       columns.Bound(x => x.PlgName).Title("质押物名称");
                       columns.Bound(x => x.PlgCategory).Title("类别");
                       columns.Bound(x => x.CurrentPrice).Title("单价(元)");
                       columns.Bound(x => x.CurrentCount).Title("数量");
                       columns.Bound(x => x.CurrentAmount).Title("合计(元)");
                       columns.Bound(x => x.OperatorName).Title("修改人");
                       columns.Bound(x => x.PreviousPrice).Title("修改前单价(元)");
                       columns.Bound(x => x.PreviousAmouont).Title("修改前合计(元)");
                       columns.Bound(x => x.CreateTime).Title("创建时间");
                       columns.Bound(x => x.UpdateTime).Title("修改时间");
                   }

                     ).Pageable(settings => settings.Total(Model.Total).PageSize(Html.GetGridPageSize()).Position(GridPagerPosition.Top))
                       //绑定搜索按钮，执行对应的action
                    .DataBinding(dataBinding => dataBinding.Ajax().Select("_List", "PlgChangePrice"))
                    .EnableCustomBinding(true)
                    .Render();
                %>
            </td>
        </tr>
    </table>
</asp:Content>
